<!-- Schedule Section -->
			<div id="schedule">
				<div class="toolbar">
					<h1>Schedule</h1>
					<a class="back" href="#home">Home</a>
				</div>
				
				<ul class="edgetoedge scroll">
					<?php 
					$lastname = '';
					foreach ($jobs as $job)
					{
					if($lastname != $job['0']['ScheduleDate']) {
						echo '<li class="sep">'.date("D d F",strtotime(h($job['0']['ScheduleDate']))).'</li>';
						$lastname = $job['0']['ScheduleDate'];
					}
					echo '<li class="arrow"><a href="Schedules/view/'.h($job['0']['JobId']).'/'.h($job['0']['RequestId']).'/'.h($job['0']['RequestScheduleId']).'">#'.h($job['0']['JobId']).' <em>'.h($job['0']['JobName']).'</em><small>'.date("H:i", strtotime(h($job['0']['VisitStartTime']))).'</small></a></li>';

					}
					?>
						
				</ul>
			</div>
			
<!-- Scheldue Section END -->